<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8">
		<title>订单管理编辑页面</title>
		<link rel="stylesheet" href="resource/css/layui.css">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="renderer" content="webkit" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="format-detection" content="telephone=no" />
		<link rel="stylesheet" href="css/global.css" media="all">
  		<link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css">
	</head>
	<body>
	<style>
	.hidea{display:none;
	}
	</style>

		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend>申请人基本信息</legend>
		</fieldset>
		<form class="layui-form" style="margin:15px;" th:object="${mUser}" method="post" enctype="multipart/form-data" id="formid">
			<input type="hidden" th:field="*{id}">
			<input type="hidden" th:field="*{createUserId}">
			<input type="hidden" th:field="*{deleteFlag}">
			<input type="hidden" th:field="*{progressiveState}">
			<input type="hidden" th:field="*{remarks}">
			<input type="hidden" th:field="*{abo.id}">
			<input type="hidden" th:field="*{acial.id}">
			<input type="hidden" th:field="*{aebi.id}">
			<input type="hidden" th:field="*{afhp.id}">
			<input type="hidden" th:field="*{agwi.id}">
			<input type="hidden" th:field="*{ahpi.id}">
			<div class="layui-form-item" >
    			<label class="layui-form-label">产品类型</label>
    				<div class="layui-input-block">
      					<select name="productType" lay-verify="required2" lay-filter="hide_a">
								<option value="1" th:selected="*{productType}==1?'selected'">恒旗月供贷</option>
								<option value="2" th:selected="*{productType}==2?'selected'">恒旗公积金贷</option>
								<option value="3" th:selected="*{productType}==3?'selected'">恒旗房易贷</option>
								<option value="4" th:selected="*{productType}==4?'selected'">恒旗保易贷</option>
								<option value="5" th:selected="*{productType}==5?'selected'">恒旗工易贷</option>
     					</select>
   					</div>
            </div>
            
			<div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{name}"  lay-verify="required2" lay-verType="tips" name="name" placeholder="请输入姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">申请时间</label>
				<div class="layui-inline">
  					<input type="text" th:field="*{appTime}" lay-verify="required2"  class="layui-input" id="yearsInCity1" name="appTime">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">申请编号</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{appNumber}" lay-verify="required2" lay-verType="tips" name="appNumber" placeholder="请输入申请编号" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">申请金额</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{appAmount}" lay-verify="required2" lay-verType="tips" name="appAmount" placeholder="请输入申请金额" autocomplete="off" class="layui-input">
				</div>
			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">贷款期限</label>
    				<div class="layui-input-block">
      					<select name="loanTerm" lay-verify="required2">
								<option value="1" th:selected="*{loanTerm}==1?'selected'">12期</option>
								<option value="2" th:selected="*{loanTerm}==2?'selected'">24期</option>
								<option value="3" th:selected="*{loanTerm}==3?'selected'">36期</option>
     					</select>
   					</div>
            </div>
            
			
  			<div class="layui-form-item">
    			<label class="layui-form-label">手机号是否转网</label>
    				<div class="layui-input-block" >
     					 <input type="radio"  th:checked="*{phoneTransfer}==1?'checked'" name="phoneTransfer" value="1" title="是">
     					 <input type="radio"  th:checked="*{phoneTransfer}==2?'checked'" name="phoneTransfer" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">手机使用超过6个月</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="*{thanSixMonths}==1?'checked'" name="thanSixMonths" value="1" title="是">
     					 <input type="radio" th:checked="*{thanSixMonths}==2?'checked'" name="thanSixMonths" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">手机号本人实名</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="*{realName}==1?'checked'" name="realName" value="1" title="是">
     					 <input type="radio" th:checked="*{realName}==2?'checked'" name="realName" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">性别</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="*{sex}==1?'checked'" name="sex" value="1" title="男">
     					 <input type="radio" th:checked="*{sex}==2?'checked'" name="sex" value="2" title="女">
    				</div>
  			</div>
  			<div class="layui-form-item">
				<label class="layui-form-label">户籍所在地</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{placeRegistration}" lay-verify="required2" lay-verType="tips" name="placeRegistration" placeholder="请输入户籍所在地" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">婚姻状况</label>
    				<div class="layui-input-block">
    				    <select name="maritalStatus" lay-verify="required2">
							<option value="1" th:selected="*{maritalStatus}==1?'selected'">未婚</option>
							<option value="2" th:selected="*{maritalStatus}==2?'selected'">已婚</option>
							<option value="3" th:selected="*{maritalStatus}==3?'selected'">离异</option>
							<option value="4" th:selected="*{maritalStatus}==4?'selected'">丧偶</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">最高学历</label>
    				<div class="layui-input-block">
     					  <select name="highestEducation" lay-verify="required2">
							<option value="1" th:selected="*{highestEducation}==1?'selected'">博士及以上</option>
							<option value="2" th:selected="*{highestEducation}==2?'selected'">硕士</option>
							<option value="3" th:selected="*{highestEducation}==3?'selected'">大学本科</option>
							<option value="4" th:selected="*{highestEducation}==4?'selected'">大学大专</option>
							<option value="5" th:selected="*{highestEducation}==5?'selected'">高中</option>
							<option value="6" th:selected="*{highestEducation}==6?'selected'">中专</option>
							<option value="7" th:selected="*{highestEducation}==7?'selected'">技校</option>
							<option value="8" th:selected="*{highestEducation}==8?'selected'">初中</option>
							<option value="9" th:selected="*{highestEducation}==9?'selected'">初中及以下</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
				<label class="layui-form-label">电话</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{telephone}" lay-verify="required2" lay-verType="tips" name="telephone" placeholder="请输入电话" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">QQ</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{qqNumber}" lay-verify="required2" lay-verType="tips" name="qqNumber" placeholder="请输入QQ号码" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">微信</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{wechat}" lay-verify="required2" lay-verType="tips" name="wechat" placeholder="请输入微信号码" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">房产情况</label>
    				<div class="layui-input-block">
     					  <select name="propertySituation" lay-verify="required2">
							<option value="1" th:selected="*{propertySituation}==1?'selected'">自置无按揭</option>
							<option value="2" th:selected="*{propertySituation}==2?'selected'">自置有按揭</option>
							<option value="3" th:selected="*{propertySituation}==3?'selected'">租房</option>
							<option value="4" th:selected="*{propertySituation}==4?'selected'">亲属楼宇</option>
							<option value="5" th:selected="*{propertySituation}==5?'selected'">集体宿舍</option>
							<option value="6" th:selected="*{propertySituation}==6?'selected'">其他</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">车辆情况</label>
    				<div class="layui-input-block">
     					  <select name="vehicleConditions" lay-verify="required2">
							<option value="1" th:selected="*{vehicleConditions}==1?'selected'">全款车</option>
							<option value="2" th:selected="*{vehicleConditions}==2?'selected'">按揭车</option>
							<option value="3" th:selected="*{vehicleConditions}==3?'selected'">多辆车</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">父母同住</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="*{liveTogether}==1?'checked'" name="liveTogether" value="1" title="是">
     					 <input type="radio" th:checked="*{liveTogether}==2?'checked'" name="liveTogether" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
				<label class="layui-form-label">现住址</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{presentAddress}" lay-verify="required2" lay-verType="tips" name="presentAddress" placeholder="请输入现住址" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">本址开始居住时间</label>
				<div class="layui-inline">
  					<input type="text" th:field="*{yearsInCity}" class="layui-input" lay-verify="required2" id="yearsInCity2" name="appTime">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">来本城市年限</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{inhabitationTime}" lay-verify="required2" lay-verType="tips" name="inhabitationTime" placeholder="请输入来本城市年限" autocomplete="off" class="layui-input">
				</div>
			</div>
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend>职业信息</legend>
		</fieldset>
		   <div class="layui-form-item">
				<label class="layui-form-label">单位名称</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{abo.unitName}" lay-verify="required2" lay-verType="tips" name="unitName" placeholder="请输入单位名称" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">入职(营业)时间</label>
				<div class="layui-inline">
  					<input type="text" th:field="*{abo.entryTime}" lay-verify="required2" class="layui-input" id="entryTime1" name="entryTime1">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">部门职务</label>
    				<div class="layui-input-block">
     					  <select name="departmentalPositions" lay-verify="required2">
							<option value="1" th:selected="*{abo.departmentalPositions}==1?'selected'">股东、法人、负责人</option>
							<option value="2" th:selected="*{abo.departmentalPositions}==2?'selected'">高级管理人员</option>
							<option value="3" th:selected="*{abo.departmentalPositions}==3?'selected'">基层管理人员</option>
							<option value="4" th:selected="*{abo.departmentalPositions}==4?'selected'">员工</option>
							<option value="5" th:selected="*{abo.departmentalPositions}==5?'selected'">销售/中介</option>
							<option value="6" th:selected="*{abo.departmentalPositions}==6?'selected'">营业员</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">收入来源</label>
    				<div class="layui-input-block">
     					  <select name="sourceOfIncome" lay-verify="required2">
							<option value="1" th:selected="*{abo.sourceOfIncome}==1?'selected'">自雇人士</option>
							<option value="2" th:selected="*{abo.sourceOfIncome}==2?'selected'">工薪人士</option>
     					</select>
    				</div>
  			</div>
  			 <div class="layui-form-item">
				<label class="layui-form-label">办公电话</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{abo.officePhone}" lay-verify="required2" lay-verType="tips" name="officePhone" placeholder="请输入办公电话" autocomplete="off" class="layui-input">
				</div>
			</div>
		
			<div class="layui-form-item">
				<label class="layui-form-label">现单位地址</label>
				<div class="layui-input-inline">
                    <select name="unitAddressProvince" id="unitAddressProvince" lay-filter="unitAddressProvince">
                     <option th:text="*{abo}?*{abo.unitAddressProvince}">请选择省</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <select name="unitAddressCity" id="unitAddressCity" lay-filter="unitAddressCity" disabled>
                        <option th:text="*{abo}?*{abo.unitAddressCity}">请选择市</option>
                    </select>
                </div>
			</div>
			<div class="layui-form-item" >
			<div class="layui-input-block">
					<input type="text" th:field="*{abo.unitAddressArea}" lay-verify="required2" lay-verType="tips" name="unitAddressArea" placeholder="请输入地址" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">社保情况</label>
    				<div class="layui-input-block">
     					  <select name="socialSecuritySituation" lay-verify="required2">
							<option value="1" th:selected="*{abo.socialSecuritySituation}==1?'selected'">公司缴纳</option>
							<option value="2" th:selected="*{abo.socialSecuritySituation}==2?'selected'">第三方缴纳</option>
							<option value="3" th:selected="*{abo.socialSecuritySituation}==3?'selected'">基层管理人员</option>
							<option value="4" th:selected="*{abo.socialSecuritySituation}==4?'selected'">自己缴纳</option>
							<option value="5" th:selected="*{abo.socialSecuritySituation}==5?'selected'">无</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">公积金</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="*{abo.unitType}==1?'checked'" name="unitType" value="1" title="是">
     					 <input type="radio" th:checked="*{abo.unitType}==2?'checked'" name="unitType" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">单位类型</label>
    				<div class="layui-input-block">
     					  <select name="unitType" lay-verify="required2">
							<option value="1" th:selected="*{abo.unitType}==1?'selected'">机关事业单位</option>
							<option value="2" th:selected="*{abo.unitType}==2?'selected'">国有企业</option>
							<option value="3" th:selected="*{abo.unitType}==3?'selected'">私营企业</option>
							<option value="4" th:selected="*{abo.unitType}==4?'selected'">外资企业</option>
							<option value="5" th:selected="*{abo.unitType}==5?'selected'">个体经营</option>
							<option value="6" th:selected="*{abo.unitType}==6?'selected'">其他</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
				<label class="layui-form-label">行业类型</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{abo.industryType}" lay-verify="required2" lay-verType="tips" name="industryType" placeholder="请输入行业类型" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">任职部门</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{abo.department}" lay-verify="required2" lay-verType="tips" name="department" placeholder="请输入任职部门" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">每月发薪日</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{abo.monthlyPayday}" lay-verify="required2" lay-verType="tips" name="monthlyPayday" placeholder="请输入每月发薪日" autocomplete="off" class="layui-input">
				</div>
			</div>
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend>收入负债信息</legend>
		</fieldset>
			<div class="layui-form-item">
				<label class="layui-form-label">月均收入</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{acial.monthlyIncome}" lay-verify="required2" lay-verType="tips" name="monthlyIncome" placeholder="请输入月均收入" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">其他月收入</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{acial.otherMonthlyIncome}" lay-verify="required2" lay-verType="tips" name="otherMonthlyIncome" placeholder="请输入其他月收入" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">供养人数</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{acial.supportNumber}" lay-verify="required2" lay-verType="tips" name="supportNumber" placeholder="请输入供养人数" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">家庭负债</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{acial.familyDebt}" lay-verify="required2" lay-verType="tips" name="familyDebt" placeholder="请输入家庭负债" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">住房贷款</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{acial.housingLoan}" lay-verify="required2" lay-verType="tips" name="housingLoan" placeholder="请输入住房贷款" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">月固定支出</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{acial.fixedExpenditure}" lay-verify="required2" lay-verType="tips" name="fixedExpenditure" placeholder="请输入月固定支出" autocomplete="off" class="layui-input">
				</div>
			</div>
			<label class="layui-form-label">其他贷款</label>
			<div class="layui-form-item">
				<label class="layui-form-label">机构名称</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{acial.organizationName}" lay-verify="required2" lay-verType="tips" name="organizationName" placeholder="请输入机构名称" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">是否办理平安新一贷</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="*{acial.whetherNewLoan}==1?'checked'" name="whetherNewLoan" value="1" title="是">
     					 <input type="radio" th:checked="*{acial.whetherNewLoan}==2?'checked'" name="whetherNewLoan" value="2" title="否">
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">还款金额</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{acial.amountOfMoney}" lay-verify="required2" lay-verType="tips" name="amountOfMoney" placeholder="请输入还款金额" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">贷款用途</label>
    				<div class="layui-input-block">
     					  <select name="loanUse" lay-verify="required2">
							<option value="1" th:selected="*{acial.loanUse}==1?'selected'">装修</option>
							<option value="2" th:selected="*{acial.loanUse}==2?'selected'">旅游</option>
							<option value="3" th:selected="*{acial.loanUse}==3?'selected'">婚庆</option>
							<option value="4" th:selected="*{acial.loanUse}==4?'selected'">其他类消费</option>
							<option value="5" th:selected="*{acial.loanUse}==5?'selected'">资金周转</option>
     					</select>
    				</div>
  			</div>
  			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend>联系人信息</legend>
		   </fieldset>
		   <div th:if="*{id!=null}" >
		   <div th:each="lists : ${appdc}">
		   <div th:switch="${lists.contactType}" >
		   <div th:case="'1'">
		    <label class="layui-form-label">配偶信息</label>
		    <input type="hidden" name="adci[0].id" th:value="${lists.id}">
		    <input type="hidden" name="adci[0].contactType" th:value="${lists.contactType}">
		    <div class="layui-form-item">
				<label class="layui-form-label">配偶姓名</label>
				<div class="layui-input-block">
					<input type="text"  lay-verify="required2" lay-verType="tips" th:value="${lists.contactName}" name="adci[0].contactName" placeholder="请输入配偶姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">身份证号</label>
				<div class="layui-input-block">
					<input type="text"   lay-verify="required2" lay-verType="tips" th:value="${lists.contactIdNumber}" name="adci[0].contactIdNumber" placeholder="请输入身份证号" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required2" lay-verType="tips" th:value="${lists.contactPhone}" name="adci[0].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists.contactKnowingLoan}==1?'checked'" name="adci[0].contactKnowingLoan" value="1" title="是">
     					 <input type="radio" th:checked="${lists.contactKnowingLoan}==2?'checked'" name="adci[0].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists.contactLocalArea}==1?'checked'" name="adci[0].contactLocalArea" value="1" title="是">
     					 <input type="radio" th:checked="${lists.contactLocalArea}==2?'checked'" name="adci[0].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		   </div>
		   </div>
		   </div>
		   <div th:each="lists1 : ${appdc}">
		   <div th:switch="${lists1.contactType}" >
		   <div th:case="'2'">
		    <label class="layui-form-label">共借人信息</label>
		    <input type="hidden" name="adci[1].id" th:value="${lists1.id}">
		    <input type="hidden" name="adci[1].contactType" th:value="${lists1.contactType}">
		    <div class="layui-form-item">
				<label class="layui-form-label">共借人姓名</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists1.contactName}" lay-verify="required2" lay-verType="tips" name="adci[1].contactName" placeholder="请输入共借人姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists1.contactPhone}" lay-verify="required2" lay-verType="tips" name="adci[1].contactPhone" placeholder="请输入共借人联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists1.contactKnowingLoan}==1?'checked'" name="adci[1].contactKnowingLoan" value="1" title="是">
     					 <input type="radio" th:checked="${lists1.contactKnowingLoan}==2?'checked'" name="adci[1].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists1.contactLocalArea}==1?'checked'" name="adci[1].contactLocalArea" value="1" title="是">
     					 <input type="radio" th:checked="${lists1.contactLocalArea}==2?'checked'" name="adci[1].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		   </div>
		   </div>
		   </div>
		   <div th:each="lists2 : ${appdc}">
		   <div th:switch="${lists2.contactType}" >
		      <div th:case="3">
		    <label class="layui-form-label">直系亲属信息</label>
		    <input type="hidden" name="adci[2].id" th:value="${lists2.id}">
		    <input type="hidden" name="adci[2].contactType" th:value="${lists2.contactType}">
		    <div class="layui-form-item">
				<label class="layui-form-label">直系亲属姓名</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists2.contactName}" lay-verify="required2" lay-verType="tips" name="adci[2].contactName" placeholder="请输入直系亲属姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="adci[2].contactRelationship" lay-verify="required2">
							<option value="1" th:selected="${lists2.contactRelationship}==1?'selected'">父亲</option>
							<option value="2" th:selected="${lists2.contactRelationship}==2?'selected'">母亲</option>
							<option value="3" th:selected="${lists2.contactRelationship}==3?'selected'">婚庆</option>
							<option value="4" th:selected="${lists2.contactRelationship}==4?'selected'">儿子</option>
							<option value="5" th:selected="${lists2.contactRelationship}==5?'selected'">女儿</option>
							<option value="6" th:selected="${lists2.contactRelationship}==5?'selected'">其他</option>
     					</select>
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists2.contactPhone}" lay-verify="required2" lay-verType="tips" name="adci[2].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists2.contactKnowingLoan}==1?'checked'" name="adci[2].contactKnowingLoan" value="1" title="是">
     					 <input type="radio" th:checked="${lists2.contactKnowingLoan}==2?'checked'" name="adci[2].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists2.contactLocalArea}==1?'checked'" name="adci[2].contactLocalArea" value="1" title="是">
     					 <input type="radio" th:checked="${lists2.contactLocalArea}==2?'checked'" name="adci[2].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		   </div>
		   </div>
		   </div>
		   <div th:each="lists3 : ${appdc}">
		   <div th:switch="${lists3.contactType}" >
		      <div th:case="4">
		    <label class="layui-form-label">亲属联系人1</legend></label>
		      <input type="hidden" name="adci[3].id" th:value="${lists3.id}">
		      <input type="hidden" name="adci[3].contactType" th:value="${lists3.contactType}">
		    <div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists3.contactName}" lay-verify="required2" lay-verType="tips" name="adci[3].contactName" placeholder="请输入姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="adci[3].contactRelationship" lay-verify="required2">
							<option value="1" th:selected="${lists3.contactRelationship}==1?'selected'">父亲</option>
							<option value="2" th:selected="${lists3.contactRelationship}==2?'selected'">母亲</option>
							<option value="3" th:selected="${lists3.contactRelationship}==3?'selected'">婚庆</option>
							<option value="4" th:selected="${lists3.contactRelationship}==4?'selected'">儿子</option>
							<option value="5" th:selected="${lists3.contactRelationship}==5?'selected'">女儿</option>
							<option value="6" th:selected="${lists3.contactRelationship}==5?'selected'">其他</option>
     					</select>
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists3.contactPhone}" lay-verify="required2" lay-verType="tips" name="adci[3].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists3.contactKnowingLoan}==1?'checked'" name="adci[3].contactKnowingLoan" value="1" title="是">
     					 <input type="radio" th:checked="${lists3.contactKnowingLoan}==2?'checked'" name="adci[3].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists3.contactLocalArea}==1?'checked'" name="adci[3].contactLocalArea" value="1" title="是">
     					 <input type="radio" th:checked="${lists3.contactLocalArea}==2?'checked'" name="adci[3].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		   </div>	  
		   </div>
		   </div>
		    <div th:each="lists4 : ${appdc}">
		     <div th:switch="${lists4.contactType}" >
		      <div th:case="5">
		    <label class="layui-form-label">同事联系人2</label>
		    <input type="hidden" name="adci[4].id" th:value="${lists4.id}">
		    <input type="hidden" name="adci[4].contactType" th:value="${lists4.contactType}">
		    <div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists4.contactName}" lay-verify="required2" lay-verType="tips" name="adci[4].contactName" placeholder="请输入姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="adci[4].contactRelationship" lay-verify="required2">
							<option value="1" th:selected="${lists4.contactRelationship}==1?'selected'">亲属</option>
							<option value="2" th:selected="${lists4.contactRelationship}==2?'selected'">朋友</option>
							<option value="3" th:selected="${lists4.contactRelationship}==3?'selected'">同事</option>
     					</select>
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists4.contactPhone}" lay-verify="required2" lay-verType="tips" name="adci[4].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists4.contactKnowingLoan}==1?'checked'" name="adci[4].contactKnowingLoan" value="1" title="是">
     					 <input type="radio" th:checked="${lists4.contactKnowingLoan}==2?'checked'" name="adci[4].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists4.contactLocalArea}==1?'checked'" name="adci[4].contactLocalArea" value="1" title="是">
     					 <input type="radio" th:checked="${lists4.contactLocalArea}==2?'checked'" name="adci[4].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		   </div>
		   </div>
		   </div>
		    <div th:each="lists5 : ${appdc}">
		     <div th:switch="${lists5.contactType}" >
		      <div th:case="6">
		    <label class="layui-form-label">其他联系人3</label>
		    <input type="hidden" name="adci[5].id" th:value="${lists5.id}">
		    <input type="hidden" name="adci[5].contactType"th:value="${lists5.contactType}">
		    <div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists5.contactName}" lay-verify="required2" lay-verType="tips" name="adci[5].contactName" placeholder="请输入姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="adci[5].contactRelationship" lay-verify="required2">
							<option value="1" th:selected="${lists5.contactRelationship}==1?'selected'">亲属</option>
							<option value="2" th:selected="${lists5.contactRelationship}==2?'selected'">朋友</option>
							<option value="3" th:selected="${lists5.contactRelationship}==3?'selected'">同事</option>
     					</select>
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists5.contactPhone}" lay-verify="required2" lay-verType="tips" name="adci[5].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists5.contactKnowingLoan}==1?'checked'" name="adci[5].contactKnowingLoan" value="1" title="是">
     					 <input type="radio" th:checked="${lists5.contactKnowingLoan}==2?'checked'" name="adci[5].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists5.contactLocalArea}==1?'checked'" name="adci[5].contactLocalArea" value="1" title="是">
     					 <input type="radio" th:checked="${lists5.contactLocalArea}==2?'checked'" name="adci[5].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		   </div>
		   </div>
		  </div>
		    <div th:each="lists6 : ${appdc}">
		     <div th:switch="${lists6.contactType}" >
		      <div th:case="7">
		    <label class="layui-form-label">其他联系人4</label>
		    <input type="hidden" name="adci[6].id" th:value="${lists6.id}">
		    <input type="hidden" name="adci[6].contactType" th:value="${lists6.contactType}">
		    <div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists6.contactName}" lay-verify="required2" lay-verType="tips" name="adci[6].contactName" placeholder="请输入姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="adci[6].contactRelationship" lay-verify="required2">
							<option value="1" th:selected="${lists6.contactRelationship}==1?'selected'">亲属</option>
							<option value="2" th:selected="${lists6.contactRelationship}==2?'selected'">朋友</option>
							<option value="3" th:selected="${lists6.contactRelationship}==3?'selected'">同事</option>
     					</select>
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" th:value="${lists6.contactPhone}" lay-verify="required2" lay-verType="tips" name="adci[6].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists6.contactKnowingLoan}==1?'checked'" name="adci[6].contactKnowingLoan" value="1" title="是">
     					 <input type="radio" th:checked="${lists6.contactKnowingLoan}==2?'checked'" name="adci[6].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="${lists6.contactLocalArea}==1?'checked'" name="adci[6].contactLocalArea" value="1" title="是">
     					 <input type="radio" th:checked="${lists6.contactLocalArea}==2?'checked'" name="adci[6].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		   </div>
		   </div>
		   </div>
		   </div>
		   <div th:if="*{id==null}" >
		   <input type="hidden" name="adci[0].contactType" value="1">
		   <label class="layui-form-label">配偶信息</label>
		    <div class="layui-form-item">
				<label class="layui-form-label">配偶姓名</label>
				<div class="layui-input-block">
					<input type="text"  lay-verify="required2" lay-verType="tips" name="adci[0].contactName" placeholder="请输入配偶姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">身份证号</label>
				<div class="layui-input-block">
					<input type="text"  lay-verify="required2" lay-verType="tips" name="adci[0].contactIdNumber" placeholder="请输入身份证号" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required2" lay-verType="tips" name="adci[0].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio"  name="adci[0].unitType" value="1" title="是">
     					 <input type="radio" name="adci[0].unitType" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio"  name="adci[0].contactLocalArea" value="1" title="是">
     					 <input type="radio" name="adci[0].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		    <label class="layui-form-label">共借人信息</label>
		    <input type="hidden" name="adci[1].contactType" value="2">
		    <div class="layui-form-item">
				<label class="layui-form-label">共借人姓名</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required2" lay-verType="tips" name="adci[1].contactName" placeholder="请输入共借人姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required2" lay-verType="tips" name="adci[1].contactPhone" placeholder="请输入共借人联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio" name="adci[1].contactKnowingLoan" value="1" title="是">
     					 <input type="radio" name="adci[1].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio" name="adci[1].contactLocalArea" value="1" title="是">
     					 <input type="radio" name="adci[1].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		    <label class="layui-form-label">直系亲属信息</label>
		    <input type="hidden" name="adci[2].contactType" value="3">
		    <div class="layui-form-item">
				<label class="layui-form-label">直系亲属姓名</label>
				<div class="layui-input-block">
					<input type="text"  lay-verify="required2" lay-verType="tips" name="adci[2].contactName" placeholder="请输入直系亲属姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="adci[2].contactRelationship" lay-verify="required2">
							<option value="1">父亲</option>
							<option value="2">母亲</option>
							<option value="3">婚庆</option>
							<option value="4">儿子</option>
							<option value="5">女儿</option>
							<option value="6">其他</option>
     					</select>
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required2" lay-verType="tips" name="adci[2].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio" name="adci[2].contactKnowingLoan" value="1" title="是">
     					 <input type="radio"name="adci[2].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio"  name="adci[2].contactLocalArea" value="1" title="是">
     					 <input type="radio" name="adci[2].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		    <label class="layui-form-label">亲属联系人1</legend></label>
		     <input type="hidden" name="adci[3].contactType" value="4">
		    <div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-block">
					<input type="text"  lay-verify="required2" lay-verType="tips" name="adci[3].contactName" placeholder="请输入姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="adci[3].contactRelationship" lay-verify="required2">
							<option value="1" >父亲</option>
							<option value="2">母亲</option>
							<option value="3" >婚庆</option>
							<option value="4">儿子</option>
							<option value="5" >女儿</option>
							<option value="6" >其他</option>
     					</select>
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required2" lay-verType="tips" name="adci[3].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio" name="adci[3].contactKnowingLoan" value="1" title="是">
     					 <input type="radio" name="adci[3].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio"  name="adci[3].contactLocalArea" value="1" title="是">
     					 <input type="radio"  name="adci[3].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		    <label class="layui-form-label">同事联系人2</label>
		    <input type="hidden" name="adci[4].contactType" value="5">
		    <div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-block">
					<input type="text"  lay-verify="required2" lay-verType="tips" name="adci[4].contactName" placeholder="请输入姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="adci[4].contactRelationship" lay-verify="required2">
							<option value="1">亲属</option>
							<option value="2" >朋友</option>
							<option value="3" >同事</option>
     					</select>
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text" lay-verify="required2" lay-verType="tips" name="adci[4].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio"  name="adci[4].contactKnowingLoan" value="1" title="是">
     					 <input type="radio"  name="adci[4].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio"  name="adci[4].contactLocalArea" value="1" title="是">
     					 <input type="radio"  name="adci[4].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		    <label class="layui-form-label">其他联系人3</label>
		    <input type="hidden" name="adci[5].contactType" value="6">
		    <div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-block">
					<input type="text"  lay-verify="required2" lay-verType="tips" name="adci[5].contactName" placeholder="请输入姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="adci[5].contactRelationship" lay-verify="required2">
							<option value="1" >亲属</option>
							<option value="2" >朋友</option>
							<option value="3" >同事</option>
     					</select>
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text"  lay-verify="required2" lay-verType="tips" name="adci[5].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio"  name="adci[5].contactKnowingLoan" value="1" title="是">
     					 <input type="radio"  name="adci[5].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio"  name="adci[5].contactLocalArea" value="1" title="是">
     					 <input type="radio"  name="adci[5].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		    <label class="layui-form-label">其他联系人4</label>
		    <input type="hidden" name="adci[6].contactType" value="7">
		    <div class="layui-form-item">
				<label class="layui-form-label">姓名</label>
				<div class="layui-input-block">
					<input type="text"  lay-verify="required2" lay-verType="tips" name="adci[6].contactName" placeholder="请输入姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="adci[6].contactRelationship" lay-verify="required2">
							<option value="1" >亲属</option>
							<option value="2" >朋友</option>
							<option value="3" >同事</option>
     					</select>
    				</div>
  			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">联系方式</label>
				<div class="layui-input-block">
					<input type="text"  lay-verify="required2" lay-verType="tips" name="adci[6].contactPhone" placeholder="请输入联系方式" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">知晓贷款</label>
    				<div class="layui-input-block">
     					 <input type="radio"  name="adci[6].contactKnowingLoan" value="1" title="是">
     					 <input type="radio"  name="adci[6].contactKnowingLoan" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">在本地</label>
    				<div class="layui-input-block">
     					 <input type="radio" name="adci[6].contactLocalArea" value="1" title="是">
     					 <input type="radio" name="adci[6].contactLocalArea" value="2" title="否">
    				</div>
  			</div>
		   </div>
		   
		   
		   
		   
		<div id="hidea4" th:class="*{whetherOrNot}==null or *{whetherOrNot}==1?'hidea'">
		   <input type="hidden" id="whetherOrNot" name="whetherOrNot" value="1">
		   <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			    <legend>共借人信息</legend>
			</fieldset>
			<div class="layui-form-item">
				<label class="layui-form-label">共借人姓名</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{aebi.boName}" lay-verify="required2" lay-verType="tips" name="boName" placeholder="请输入共借人姓名" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">关系</label>
    				<div class="layui-input-block">
     					  <select name="boRelationship" lay-verify="required2">
							<option value="1" th:selected="*{aebi.boRelationship}==1?'selected'">父亲</option>
							<option value="2" th:selected="*{aebi.boRelationship}==2?'selected'">母亲</option>
							<option value="3" th:selected="*{aebi.boRelationship}==3?'selected'">配偶</option>
							<option value="4" th:selected="*{aebi.boRelationship}==4?'selected'">子女</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
				<label class="layui-form-label">单位名称</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{aebi.unitName}" lay-verify="required2" lay-verType="tips" name="unitName" placeholder="请输入单位名称" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">入职(营业)时间</label>
				<div class="layui-inline">
  					<input type="text" th:field="*{aebi.entryTime}" class="layui-input" id="entryTime2" name="entryTime2">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">部门职务</label>
    				<div class="layui-input-block">
     					  <select name="departmentalPositions" lay-verify="required2">
							<option value="1" th:selected="*{aebi.departmentalPositions}==1?'selected'">股东、法人、负责人</option>
							<option value="2" th:selected="*{aebi.departmentalPositions}==2?'selected'">高级管理人员</option>
							<option value="3" th:selected="*{aebi.departmentalPositions}==3?'selected'">初级管理人员</option>
							<option value="4" th:selected="*{aebi.departmentalPositions}==4?'selected'">一般员工</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">收入来源</label>
    				<div class="layui-input-block">
     					  <select name="sourceOfIncome" lay-verify="required2">
							<option value="1" th:selected="*{aebi.sourceOfIncome}==1?'selected'">自雇人士</option>
							<option value="2" th:selected="*{aebi.sourceOfIncome}==2?'selected'">工薪人士</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
				<label class="layui-form-label">办公电话</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{aebi.officePhone}" lay-verify="required2" lay-verType="tips" name="officePhone" placeholder="请输入办公电话" autocomplete="off" class="layui-input">
				</div>
			</div>
			<label class="layui-form-label">共借人信息</label>
			<div class="layui-form-item">
				<label class="layui-form-label">现单位地址</label>
				<div class="layui-input-inline">
                    <select name="eAddressProvince" id="eAddressProvince" lay-filter="eAddressProvince">
                     <option th:text="*{aebi}?*{aebi.eAddressProvince}">请选择省</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <select name="eAddressCity"  id="eAddressCity" lay-filter="eAddressCity" disabled>
                        <option th:text="*{aebi}?*{aebi.eAddressCity}">请选择市</option>
                    </select>
                </div>
                
			</div>
			<div class="layui-form-item">
			    <div class="layui-input-block">
					<input type="text" th:field="*{aebi.eAddressArea}" lay-verify="required2" lay-verType="tips" name="eAddressArea" placeholder="请输入地址" autocomplete="off" class="layui-input">
			    </div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">单位类型</label>
    				<div class="layui-input-block">
     					  <select name="unitType" lay-verify="required2">
							<option value="1" th:selected="*{aebi.unitType}==1?'selected'">机关事业单位</option>
							<option value="2" th:selected="*{aebi.unitType}==2?'selected'">国有企业</option>
							<option value="3" th:selected="*{aebi.unitType}==3?'selected'">私有企业</option>
							<option value="4" th:selected="*{aebi.unitType}==4?'selected'">外资企业</option>
							<option value="5" th:selected="*{aebi.unitType}==5?'selected'">个体经营</option>
							<option value="6" th:selected="*{aebi.unitType}==6?'selected'">其他</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">行业类型</label>
    				<div class="layui-input-block">
     					  <select name="industryType" lay-verify="required2">
							<option value="1" th:selected="*{aebi.industryType}==1?'selected'">农林牧副渔</option>
							<option value="2" th:selected="*{aebi.industryType}==2?'selected'">建筑业</option>
							<option value="3" th:selected="*{aebi.industryType}==3?'selected'">金融行业</option>
							<option value="4" th:selected="*{aebi.industryType}==4?'selected'">餐饮业</option>
							<option value="5" th:selected="*{aebi.industryType}==5?'selected'">商贸公司</option>
							<option value="6" th:selected="*{aebi.industryType}==6?'selected'">其他</option>
     					</select>
    				</div>
  			</div>
		</div>
		<div id="hidea1" th:class="*{productType}==2 or *{productType}==4 or *{productType}==5?'hidea'">
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			    <legend>房产信息</legend>
			</fieldset>
			<input type="hidden" th:field="*{afhp.id}">
			<div class="layui-form-item" >
    			<label class="layui-form-label">房产类型</label>
    				<div class="layui-input-block">
     					  <select name="propertyType" lay-verify="required2">
							<option value="1" th:selected="*{afhp.propertyType}==1?'selected'">商业按揭房</option>
							<option value="2" th:selected="*{afhp.propertyType}==2?'selected'">公积金按揭房</option>
							<option value="3" th:selected="*{afhp.propertyType}==3?'selected'">抵押房</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
				<label class="layui-form-label">每月还款金额</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{afhp.reimbursementAmount}" lay-verify="required2" lay-verType="tips" name="reimbursementAmount" placeholder="请输入每月还款金额" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">购买时间</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{afhp.purchaseTimeYear}" lay-verify="required2" lay-verType="tips" name="purchaseTimeYear" placeholder="请输入年" autocomplete="off" class="layui-input">年
				<input type="text" th:field="*{afhp.purchaseTimeMonth}" lay-verify="required2" lay-verType="tips" name="purchaseTimeMonth" placeholder="请输入月" autocomplete="off" class="layui-input">月
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">购买价格</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{afhp.purchasePrice}" lay-verify="required2" lay-verType="tips" name="purchasePrice" placeholder="请输入购买价格" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">建筑面积</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{afhp.area}" lay-verify="required2" lay-verType="tips" name="area" placeholder="请输入建筑面积" autocomplete="off" class="layui-input">
				</div>
			</div>
			<label class="layui-form-label">房产地址</label>
			<div class="layui-form-item">
				<label class="layui-form-label">现单位地址</label>
				
				<div class="layui-input-inline">
                    <select name="houseAddressProvince" id="houseAddressProvince" lay-filter="houseAddressProvince">
                     <option th:text="*{afhp}?*{afhp.houseAddressProvince}">请选择省</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <select name="houseAddressCity" id="houseAddressCity" lay-filter="houseAddressCity" disabled>
                        <option th:text="*{afhp}?*{afhp.houseAddressCity}">请选择市</option>
                    </select>
                </div>
                
			</div>
			<div class="layui-form-item" >
			<div class="layui-input-block">
					<input type="text" th:value="*{afhp.houseAddressArea}" lay-verify="required2" lay-verType="tips" name="houseAddressArea" placeholder="请输入地址" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">是否有多套</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="*{afhp.multipleSets}==1?'checked'" name="multipleSets" value="1" title="是">
     					 <input type="radio" th:checked="*{afhp.multipleSets}==2?'checked'" name="multipleSets" value="2" title="否">
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">是否共有</label>
    				<div class="layui-input-block">
     					 <input type="radio" th:checked="*{afhp.isItCommon}==1?'checked'" name="isItCommon" value="1" title="是">
     					 <input type="radio" th:checked="*{afhp.isItCommon}==2?'checked'" name="isItCommon" value="2" title="否">
    				</div>
  			</div>
		</div>
		<div id="hidea2" th:class="*{productType}==null or *{productType}==1 or *{productType}==3 or *{productType}==4?'hidea'">
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			    <legend>社保公积金信息</legend>
			</fieldset>
			<label class="layui-form-label">公积金</label>
			 <div class="layui-form-item">
				<label class="layui-form-label">现单位缴存时长</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{agwi.acDeposit}" lay-verify="required2" lay-verType="tips" name="acDeposit" placeholder="请输入现单位缴存时长" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">每月缴存额</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{agwi.acDepositLength}" lay-verify="required2" lay-verType="tips" name="acDepositLength" placeholder="请输入每月缴存额" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">共积金帐号</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{agwi.acFundAccount}" lay-verify="required2" lay-verType="tips" name="acFundAccount" placeholder="请输入共积金帐号" autocomplete="off" class="layui-input">
				</div>
			</div>
			 <label class="layui-form-label">社保</label>
			 <div class="layui-form-item">
				<label class="layui-form-label">现单位缴存时长</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{agwi.soDeposit}" lay-verify="required2" lay-verType="tips" name="soDeposit" placeholder="请输入现单位缴存时长" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">每月缴存额</label>
				<div class="layui-input-block">
					<input type="text" th:value="*{agwi.soDepositLength}" lay-verify="required2" lay-verType="tips" name="soDepositLength" placeholder="请输入每月缴存额" autocomplete="off" class="layui-input">
				</div>
			</div>
		</div>
		<div id="hidea3" th:class="*{productType}==null or *{productType}==1 or *{productType}==2 or *{productType}==3 or *{productType}==5?'hidea'">
			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			    <legend>保单信息</legend>
			</fieldset>
			<div class="layui-form-item">
				<label class="layui-form-label">保险公司</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{ahpi.insuranceCompany}" lay-verify="required2" lay-verType="tips" name="insuranceCompany" placeholder="请输入保险公司" autocomplete="off" class="layui-input">
				</div>
			</div>
				<div class="layui-form-item">
				<label class="layui-form-label">投保地址</label>
				<div class="layui-input-inline">
                    <select name="inAddressProvince"  id="inAddressProvince" lay-filter="inAddressProvince">
                     <option th:text="*{ahpi}?*{ahpi.inAddressProvince}">请选择省</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <select name="inAddressCity" id="inAddressCity" lay-filter="inAddressCity" disabled>
                        <option th:text="*{ahpi}?*{ahpi.inAddressCity}">请选择市</option>
                    </select>
                </div>
			</div>
			<div class="layui-form-item" >
			<div class="layui-input-block">
					<input type="text" th:value="*{ahpi.inAddressArea}" lay-verify="required2" lay-verType="tips" name="inAddressArea" placeholder="请输入地址" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">生效日期</label>
				<div class="layui-inline">
  					<input type="text" th:field="*{ahpi.effectiveDate}" lay-verify="required2" class="layui-input" id="effectiveDate" name="effectiveDate">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">需缴纳年数</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{ahpi.years}" lay-verify="required2" lay-verType="tips" name="years" placeholder="请输入需缴纳年数" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
    			<label class="layui-form-label">缴费方式</label>
    				<div class="layui-input-block">
     					  <select name="paymentMethod" lay-verify="required2">
							<option value="1" th:selected="*{ahpi.paymentMethod}==1?'selected'">期缴</option>
							<option value="2" th:selected="*{ahpi.paymentMethod}==2?'selected'">趸缴</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">缴费类别</label>
    				<div class="layui-input-block">
     					  <select name="paymentCategory" lay-verify="required2">
							<option value="1" th:selected="*{ahpi.paymentCategory}==1?'selected'">月缴</option>
							<option value="2" th:selected="*{ahpi.paymentCategory}==2?'selected'">年缴</option>
							<option value="3" th:selected="*{ahpi.paymentCategory}==3?'selected'">其他</option>
     					</select>
    				</div>
  			</div>
  			<div class="layui-form-item">
				<label class="layui-form-label">缴期保费</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{ahpi.regularPremium}" lay-verify="required2" lay-verType="tips" name="regularPremium" placeholder="请输入缴期保费" autocomplete="off" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">总保额</label>
				<div class="layui-input-block">
					<input type="text" th:field="*{ahpi.totalAmountInsured}" lay-verify="required2" lay-verType="tips" name="totalAmountInsured" placeholder="请输入总保额" autocomplete="off" class="layui-input">
				</div>
			</div>
  			<div class="layui-form-item">
    			<label class="layui-form-label">缴费类别</label>
    				<div class="layui-input-block">
     					  <select name="dangerousSpecies" lay-verify="required2">
							<option value="1" th:selected="*{ahpi.dangerousSpecies}==1?'selected'">传统型</option>
							<option value="2" th:selected="*{ahpi.dangerousSpecies}==2?'selected'">分红型</option>
							<option value="3" th:selected="*{ahpi.dangerousSpecies}==3?'selected'">万能型</option>
     					</select>
    				</div>
  			</div>
		</div>
		<div class="layui-form-item" style="display:none;">
				<label class="layui-form-label">1</label>
				<div class="layui-input-block"  id="tfa">
					
				</div>
		</div>
		<div class="layui-form-item" style="display:none;">
				<label class="layui-form-label">1</label>
				<div class="layui-input-block"  id="tfb">
					
				</div>
		</div>
		<div class="layui-form-item" style="display:none;">
				<label class="layui-form-label">1</label>
				<div class="layui-input-block"  id="tfc"></div>
		</div>
		<div class="layui-form-item" style="display:none;">
				<label class="layui-form-label">1</label>
				<div class="layui-input-block"  id="tfd"></div>
		</div>
		<div class="layui-form-item" style="display:none;">
				<label class="layui-form-label">1</label>
				<div class="layui-input-block"  id="tfe"></div>
		</div>
		<div class="layui-form-item" style="display:none;">
				<label class="layui-form-label">1</label>
				<div class="layui-input-block"  id="tff"></div>
		</div>
		<div class="layui-form-item" style="display:none;">
				<label class="layui-form-label">1</label>
				<div class="layui-input-block"  id="tfg"></div>
		</div>
		<div class="layui-form-item" style="display:none;">
				<label class="layui-form-label">1</label>
				<div class="layui-input-block"  id="tfh"></div>
		</div>
		<div class="layui-form-item" style="display:none;">
				<label class="layui-form-label">1</label>
				<div class="layui-input-block"  id="tfi"></div>
		</div>
		<div class="layui-form-item" style="display:none;">
				<label class="layui-form-label">1</label>
				<div class="layui-input-block"  id="aip1">
					<div th:each="listp : ${aip}">
				  		<input style="display:none;"  th:name="'aip['+${listp.id}+'].impPath'" th:value="${listp.impPath}">
				  		<input style="display:none;"  th:name="'aip['+${listp.id}+'].id'" th:value="${listp.id}">
				  		<input style="display:none;"  th:name="'aip['+${listp.id}+'].deleteFlag'"th:id="'yimg'+${listp.id}" th:value="${listp.deleteFlag}">
					</div>
				
				</div>
		</div>
		<div class="layui-form-item" style="display:none;">
			    <div class="layui-input-block">
			      <button class="layui-btn" lay-submit lay-filter="edit" id="pro_edit">立即提交</button>
			      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
			    </div>
		</div>	
		</form>
		<div id="fileup">
		<div   id="tf1" data-id3="file_a" data-id="tfa" data-id2="filea">
		<div class="layui-form-item">
				<label class="layui-form-label">上传身份证资料：</label>
				<div class="layui-input-block">
<!-- 					 <img src="img/moren.jpg" alt="" id="result"> -->
<!--                             <a href="javascript:;" onclick="$('input[id=file]').click();" id="files" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a> -->
<!--                             <div class="img-remove"><i class="glyphicon glyphicon-remove"></i></div> -->
                           <a href="javascript:;" onclick="filesclick(this)" data-id="filea" data-id2="file_a" data-id3="resulta"id="files" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a>
<!--                               <input id="file" type="file" name="file" onchange="readAsDataURL(this);" style="display:none"> -->
                                 <div id="file_a">
                                 </div>
                             <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
   								 预览图：
    							<div class="layui-upload-list" id="resulta">
    							   <div th:each="listi : ${aip}">
		   						   		<div th:switch="${listi.impType}" >
		   						   			<div th:case="'1'"> 
		   						   				<img th:src="${listi.impPath}" alt="" id="imagesa" height="120" width="100">
		   						   				  <a href="javascript:;" onclick="downimg(this)" id="downimg" th:value="${listi.impPath}" class="layui-btn layui-btn-xs layui-btn-normal">下载</a>
		   						   				  <a href="javascript:;" onclick="deleteimg(this)"  th:value="${listi.id}" data-id2="Y"class="layui-btn layui-btn-xs layui-btn-warm">删除</a>
		   						   				    <br>
		   						   			</div>
		   						  		</div>
		   						   </div>
    							</div>
 							</blockquote>
				</div>
			</div>
			</div>
			<div   id="tf1" data-id3="file_b" data-id="tfb" data-id2="fileb">
			<div class="layui-form-item">
				<label class="layui-form-label">上传征信资料：</label>
				<div class="layui-input-block">
<!-- 					 <img src="img/moren.jpg" alt="" id="result"> -->
<!--                             <a href="javascript:;" onclick="$('input[id=file]').click();" id="files" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a> -->
<!--                             <div class="img-remove"><i class="glyphicon glyphicon-remove"></i></div> -->
                           <a href="javascript:;" onclick="filesclick(this)" data-id="fileb" data-id2="file_b" data-id3="resultb"id="filesb" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a>
                                 <div id="file_b">
                                 </div>
                             <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
   								 预览图：
    							<div class="layui-upload-list" id="resultb">
    							   <div th:each="listib : ${aip}">
		   						   		<div th:switch="${listib.impType}" >
		   						   			<div th:case="'2'"> 
		   						   				<img th:src="${listib.impPath}" alt="" id="imagesb" height="120" width="100">
		   						   				  <a href="javascript:;" onclick="downimg(this)" id="downimg" th:value="${listib.impPath}" class="layui-btn layui-btn-xs layui-btn-normal">下载</a>
		   						   				  <a href="javascript:;" onclick="deleteimg(this)"  th:value="${listib.id}" data-id2="Y"class="layui-btn layui-btn-xs layui-btn-warm">删除</a>
		   						   				    <br>
		   						   			</div>
		   						  		</div>
		   						   </div>
    							</div>
 							</blockquote>
				</div>
			</div>
			</div>
			<div  id="tf1" data-id3="file_c" data-id="tfc" data-id2="filec">
			<div class="layui-form-item">
				<label class="layui-form-label">上传房产资料：</label>
				<div class="layui-input-block">
<!-- 					 <img src="img/moren.jpg" alt="" id="result"> -->
<!--                             <a href="javascript:;" onclick="$('input[id=file]').click();" id="files" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a> -->
<!--                             <div class="img-remove"><i class="glyphicon glyphicon-remove"></i></div> -->
                           <a href="javascript:;" onclick="filesclick(this)" data-id="filec" data-id2="file_c" data-id3="resultc"id="filesc" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a>
                                 <div id="file_c">
                                 </div>
                             <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
   								 预览图：
    							<div class="layui-upload-list" id="resultc">
    							   <div th:each="listic : ${aip}">
		   						   		<div th:switch="${listic.impType}" >
		   						   			<div th:case="'3'"> 
		   						   				<img th:src="${listic.impPath}" alt="" id="imagesc" height="120" width="100">
		   						   				  <a href="javascript:;" onclick="downimg(this)" id="downimg" th:value="${listic.impPath}" class="layui-btn layui-btn-xs layui-btn-normal">下载</a>
		   						   				  <a href="javascript:;" onclick="deleteimg(this)"  th:value="${listic.id}" data-id2="Y"class="layui-btn layui-btn-xs layui-btn-warm">删除</a>
		   						   				    <br>
		   						   			</div>
		   						  		</div>
		   						   </div>
    							</div>
 							</blockquote>
				</div>
			</div>
			</div>
			<div id="tf1" data-id3="file_d" data-id="tfd" data-id2="filed">
			<div class="layui-form-item">
				<label class="layui-form-label">上传婚姻证明：</label>
				<div class="layui-input-block">
<!-- 					 <img src="img/moren.jpg" alt="" id="result"> -->
<!--                             <a href="javascript:;" onclick="$('input[id=file]').click();" id="files" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a> -->
<!--                             <div class="img-remove"><i class="glyphicon glyphicon-remove"></i></div> -->
                           <a href="javascript:;" onclick="filesclick(this)" data-id="filed" data-id2="file_d" data-id3="resultd"id="filesd" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a>
                                 <div id="file_d">
                                 </div>
                             <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
   								 预览图：
    							<div class="layui-upload-list" id="resultd">
    							   <div th:each="listid : ${aip}">
		   						   		<div th:switch="${listid.impType}" >
		   						   			<div th:case="'4'"> 
		   						   				<img th:src="${listid.impPath}" alt="" id="imagesd" height="120" width="100">
		   						   				  <a href="javascript:;" onclick="downimg(this)" id="downimg" th:value="${listid.impPath}" class="layui-btn layui-btn-xs layui-btn-normal">下载</a>
		   						   				  <a href="javascript:;" onclick="deleteimg(this)"  th:value="${listid.id}" data-id2="Y"class="layui-btn layui-btn-xs layui-btn-warm">删除</a>
		   						   				    <br>
		   						   			</div>
		   						  		</div>
		   						   </div>
    							</div>
 							</blockquote>
				</div>
			</div>
			</div>
			<div  id="tf1" data-id3="file_e" data-id="tfe" data-id2="filee">
			<div class="layui-form-item">
				<label class="layui-form-label">上传工作资料：</label>
				<div class="layui-input-block">
<!-- 					 <img src="img/moren.jpg" alt="" id="result"> -->
<!--                             <a href="javascript:;" onclick="$('input[id=file]').click();" id="files" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a> -->
<!--                             <div class="img-remove"><i class="glyphicon glyphicon-remove"></i></div> -->

                           <a href="javascript:;" onclick="filesclick(this)" data-id="filee" data-id2="file_e" data-id3="resulte"id="filese" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a>
                                 <div id="file_e">
                                 </div>
                             <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
   								 预览图：
    							<div class="layui-upload-list" id="resulte">
    							   <div th:each="listie : ${aip}">
		   						   		<div th:switch="${listie.impType}" >
		   						   			<div th:case="'5'"> 
		   						   				<img th:src="${listie.impPath}" alt="" id="imagese" height="120" width="100">
		   						   				  <a href="javascript:;" onclick="downimg(this)" id="downimg" th:value="${listie.impPath}" class="layui-btn layui-btn-xs layui-btn-normal">下载</a>
		   						   				  <a href="javascript:;" onclick="deleteimg(this)"  th:value="${listie.id}" data-id2="Y"class="layui-btn layui-btn-xs layui-btn-warm">删除</a>
		   						   				    <br>
		   						   			</div>
		   						  		</div>
		   						   </div>
    							</div>
 							</blockquote>
				</div>
			</div>
			</div>
			<div  id="tf1" data-id3="file_f" data-id="tff" data-id2="filef">
			<div class="layui-form-item">
				<label class="layui-form-label">上传保单信息：</label>
				<div class="layui-input-block">
<!-- 					 <img src="img/moren.jpg" alt="" id="result"> -->
<!--                             <a href="javascript:;" onclick="$('input[id=file]').click();" id="files" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a> -->
<!--                             <div class="img-remove"><i class="glyphicon glyphicon-remove"></i></div> -->
                           <a href="javascript:;" onclick="filesclick(this)" data-id="filef" data-id2="file_f" data-id3="resultf"id="filesf" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a>
                                 <div id="file_f">
                                 </div>
                             <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
   								 预览图：
    							<div class="layui-upload-list" id="resultf">
    							   <div th:each="listif : ${aip}">
		   						   		<div th:switch="${listif.impType}" >
		   						   			<div th:case="'6'"> 
		   						   				<img th:src="${listif.impPath}" alt="" id="imagesf" height="120" width="100">
		   						   				 <a href="javascript:;" onclick="downimg(this)" id="downimg" th:value="${listif.impPath}" class="layui-btn layui-btn-xs layui-btn-normal">下载</a>
		   						   				  <a href="javascript:;" onclick="deleteimg(this)"  th:value="${listif.id}" data-id2="Y"class="layui-btn layui-btn-xs layui-btn-warm">删除</a>
		   						   				    <br>
		   						   			</div>
		   						  		</div>
		   						   </div>
    							</div>
 							</blockquote>
				</div>
			</div>
			</div>
			<div  id="tf1" data-id3="file_g" data-id="tfg" data-id2="fileg">
			<div class="layui-form-item">
				<label class="layui-form-label">上传公积金信息：</label>
				<div class="layui-input-block">
<!-- 					 <img src="img/moren.jpg" alt="" id="result"> -->
<!--                             <a href="javascript:;" onclick="$('input[id=file]').click();" id="files" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a> -->
<!--                             <div class="img-remove"><i class="glyphicon glyphicon-remove"></i></div> -->
                           <a href="javascript:;" onclick="filesclick(this)" data-id="fileg" data-id2="file_g" data-id3="resultg"id="filesg" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a>
                                 <div id="file_g">
                                 </div>
                             <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
   								 预览图：
    							<div class="layui-upload-list" id="resultg">
    							   <div th:each="listig : ${aip}">
		   						   		<div th:switch="${listig.impType}" >
		   						   			<div th:case="'7'"> 
		   						   				<img th:src="${listig.impPath}" alt="" id="imagesg" height="120" width="100">
		   						   				  <a href="javascript:;" onclick="downimg(this)" id="downimg" th:value="${listig.impPath}" class="layui-btn layui-btn-xs layui-btn-normal">下载</a>
		   						   				  <a href="javascript:;" onclick="deleteimg(this)"  th:value="${listig.id}" data-id2="Y"class="layui-btn layui-btn-xs layui-btn-warm">删除</a>
		   						   				    <br>
		   						   			</div>
		   						  		</div>
		   						   </div>
    							</div>
 							</blockquote>
				</div>
			</div>
			</div>
			<div  id="tf1" data-id3="file_h" data-id="tfh" data-id2="fileh">
			<div class="layui-form-item">
				<label class="layui-form-label">上传附加资料：</label>
				<div class="layui-input-block">
<!-- 					 <img src="img/moren.jpg" alt="" id="result"> -->
<!--                             <a href="javascript:;" onclick="$('input[id=file]').click();" id="files" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a> -->
<!--                             <div class="img-remove"><i class="glyphicon glyphicon-remove"></i></div> -->
                           <a href="javascript:;" onclick="filesclick(this)" data-id="fileh" data-id2="file_h" data-id3="resulth"id="filesh" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a>
                                 <div id="file_h">
                                 </div>
                             <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
   								 预览图：
    							<div class="layui-upload-list" id="resulth">
    							   <div th:each="listih : ${aip}">
		   						   		<div th:switch="${listih.impType}" >
		   						   			<div th:case="'8'"> 
		   						   				<img th:src="${listih.impPath}" alt="" id="imagesh" height="120" width="100">
		   						   				  <a href="javascript:;" onclick="downimg(this)" id="downimg" th:value="${listih.impPath}" class="layui-btn layui-btn-xs layui-btn-normal">下载</a>
		   						   				  <a href="javascript:;" onclick="deleteimg(this)"  th:value="${listih.id}" data-id2="Y"class="layui-btn layui-btn-xs layui-btn-warm">删除</a>
		   						   				    <br>
		   						   			</div>
		   						  		</div>
		   						   </div>
    							</div>
 							</blockquote>
				</div>
			</div>
			</div>
			<form  enctype="multipart/form-data" id="tf1" data-id3="file_i" data-id="tfi" data-id2="filei">
			<div class="layui-form-item">
				<label class="layui-form-label">上传通话详单资料：</label>
				<div class="layui-input-block">
<!-- 					 <img src="img/moren.jpg" alt="" id="result"> -->
<!--                             <a href="javascript:;" onclick="$('input[id=file]').click();" id="files" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a> -->
<!--                             <div class="img-remove"><i class="glyphicon glyphicon-remove"></i></div> -->
                           <a href="javascript:;" onclick="filesclick(this)" data-id="filei" data-id2="file_i" data-id3="resulti"id="filesi" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a>
                                 <div id="file_i">
                                 </div>
                             <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
   								 预览图：
    							<div class="layui-upload-list" id="resulti">
    							   <div th:each="listii : ${aip}">
		   						   		<div th:switch="${listii.impType}" >
		   						   			<div th:case="'9'"> 
		   						   				<img th:src="${listii.impPath}" alt="" id="imagesi" height="120" width="100">
		   						   				  <a href="javascript:;" onclick="downimg(this)" id="downimg" th:value="${listii.impPath}" class="layui-btn layui-btn-xs layui-btn-normal">下载</a>
		   						   				  <a href="javascript:;" onclick="deleteimg(this)"  th:value="${listii.id}" data-id2="Y"class="layui-btn layui-btn-xs layui-btn-warm">删除</a>
		   						   				    <br>
		   						   			</div>
		   						  		</div>
		   						   </div>
    							</div>
 							</blockquote>
				</div>
			</div>
			</form>
				<div class="layui-form-item">
					 <div class="layui-input-block">
					      <button class="layui-btn" onclick="fileupload(this)">立即提交</button>
					      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
					 </div>
				</div>
			
			</div>
<!-- 		<a href="javascript:;"  onclick="fileupload(this)"class="layui-btn layui-btn-xs layui-btn-normal">上传</a> -->
<!-- 		<div class="layui-form-item"> -->
<!-- 				<label class="layui-form-label">上传测试：</label> -->
<!-- 				<div class="layui-input-block"> -->
<!--                            <a href="javascript:;" onclick="filesclick(this)" data-id="filej" data-id2="file_j" data-id3="resultj"id="filesj" class="layui-btn layui-btn-xs layui-btn-normal">点击上传</a> -->
<!--                                  <div id="file_j"> -->
<!--                                  </div> -->
<!--                              <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;"> -->
<!--    								 预览图： -->
<!--     							<div class="layui-upload-list" id="resultj"> -->
<!--     							   <div th:each="listij : ${aip}"> -->
<!-- 		   						   		<div th:switch="${listij.impType}" > -->
<!-- 		   						   			<div th:case="'10'">  -->
<!-- 		   						   				<img th:src="${listij.impPath}" alt="" id="imagesj" height="120" width="100"> -->
<!-- 		   						   				  <a href="javascript:;" onclick="deleteimg(this)" id="imagej" class="layui-btn layui-btn-xs layui-btn-warm">删除</a> -->
<!-- 		   						   				    <br> -->
<!-- 		   						   			</div> -->
<!-- 		   						  		</div> -->
<!-- 		   						   </div> -->
<!--     							</div> -->
<!--  							</blockquote> -->
<!-- 				</div> -->
<!-- 			</div> -->
			
<!-- 			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;"> -->
<!--   <legend>上传多张图片</legend> -->
<!-- </fieldset> -->
 
<!-- <div class="layui-upload"> -->
<!--   <button type="button" class="layui-btn" id="test2">多图片上传</button>  -->
<!--   <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;"> -->
<!--     预览图： -->
<!--     <div class="layui-upload-list" id="demo2"></div> -->
<!--  </blockquote> -->
<!-- </div> -->
		<script src="resource/layui.js"></script>
		<script src="js/a_product_edit.js"></script>
		<script src="./mobile/js/jquery-2.1.4.js"></script>	
		<script src="js/assets/address.js"></script>
		<script>
layui.use('laydate', function(){
  var laydate = layui.laydate;
  
  //执行一个laydate实例
  laydate.render({
    elem: '#yearsInCity1' //指定元素
  });
  //执行一个laydate实例
  laydate.render({
   elem: '#yearsInCity2' //指定元素
  });
//执行一个laydate实例
  laydate.render({
   elem: '#entryTime1' //指定元素
  });
//执行一个laydate实例
  laydate.render({
   elem: '#entryTime2' //指定元素
  });
});





</script>
<script>
layui.config({
    base : "js/assets/"
}).use(['jquery',"address"],function() {
    var address = layui.address("unitAddressProvince","unitAddressCity"),
    $ = layui.jquery;
}).use(['jquery',"address"],function() {
    var address2 = layui.address("eAddressProvince","eAddressCity"),
    $ = layui.jquery;
}).use(['jquery',"address"],function() {
    var address2 = layui.address("houseAddressProvince","houseAddressCity"),
    $ = layui.jquery;
}).use(['jquery',"address"],function() {
    var address2 = layui.address("inAddressProvince","inAddressCity"),
    $ = layui.jquery;
});
var result = document.getElementById("result");
if(typeof FileReader == 'undefined') {
    result.innerHTML = "抱歉，你的浏览器不支持FileReader";
}
// 将文件以Data URL形式进行读入页面
function readAsDataURL(obj){
	var readAsDataURL_a=$(obj).attr("data-id1");
	var readAsDataURL_b=$(obj).attr("data-id2");
    // 检查是否为图像类型
    var simpleFile = document.getElementById(readAsDataURL_a).files[0];
    if(!/image\/\w+/.test(simpleFile.type)) {
        layer.msg("请确保文件类型为图像类型");
        return false;
    }
    var reader = new FileReader();
    // 将文件以Data URL形式进行读入页面
    reader.readAsDataURL(simpleFile);
    reader.onload = function(e){
    	
//         $("#result").attr("src",this.result);
        $("#"+readAsDataURL_b).append('<img src="'+this.result+'" alt="" id="image" height="120" width="100">'
        		+'<a href="javascript:;" onclick="deleteimg(this)" data-id1="'+readAsDataURL_a+'" data-id2="N" class="layui-btn layui-btn-xs layui-btn-warm">删除</a>'
  				+ ' <br>');
    }
} 
var filesclick_a=0;
function filesclick(obj){
	filesclick_a++;
	var filesclick_b=$(obj).attr("data-id");
	var filesclick_c=$(obj).attr("data-id2");
	var filesclick_d=filesclick_a+filesclick_b;
	var filesclick_e=$(obj).attr("data-id3");
	$("#"+filesclick_c).append('<form  enctype="multipart/form-data" id="'+filesclick_a+'"> <input id="'+filesclick_d+'" type="file" name="'+filesclick_b+'" '
			 +'onchange="readAsDataURL(this);"  data-id2="'+filesclick_e+'"'
			 +'data-id1="'+filesclick_d+'"style="display:none" multiple></form>');
	$("#"+filesclick_d).click();
}
function deleteimg(obj){
	var deleteimg_a=$(obj).attr("data-id1");
	var deleteimg_b=$(obj).attr("data-id2");
	if(deleteimg_b=="Y"){
		var deleteimg_c=$(obj).attr("value");
		$("#aip1").find("#yimg"+deleteimg_c).attr("value","Y");
	}
	$("#"+deleteimg_a).parent().remove();
	$("#"+deleteimg_a).remove();
	$(obj).prev().prev().remove();
	$(obj).prev().remove();
	$(obj).next().remove();
	$(obj).remove();
}
layui.use('upload', function(){
	  var $ = layui.jquery
	  ,upload = layui.upload;
//多图片上传
upload.render({
  elem: '#test2'//         /2018-04-20/6bddb617-b1a7-42ac-a14a-b367c7787fdc.png  /2018-04-20/08a69704-560e-49bf-9127-2104484a1ec7.png
  ,url: 'http://47.97.126.57:8082/formpostmultipart'//http://47.97.126.57:8082/file
  ,multiple: true
  ,before: function(obj){
    //预读本地文件示例，不支持ie8
    obj.preview(function(index, file, result){
      $('#demo2').append('<img src="'+ result +'" alt="'+ file.name +'" class="layui-upload-img">')
    });
  }
  ,done: function(res){
    //上传完毕
  }
});
});
function fileupload(obj){
	$("#fileup").find("#tf1").each(function(){
		var fileup_a=$(this).attr("id");
		var fileup_b=$(this).attr("data-id");
		var fileup_c=$(this).attr("data-id2");
		var fileup_e=$(this).attr("data-id3");
		$("#"+fileup_b).html('');
		var fileup_g=0;
		$("#"+fileup_e).find("form").each(function(){
			var fileup_f=$(this).attr("id");
			var simage_4 = new FormData(document.getElementById(fileup_f));
			  judgetime=true;
	 		if(simage_4 !=null){
	 		  $.ajax({
	 	          url:"http://47.97.126.57:8082/formpostmultipart",
	 	          type:"post",
	 	          data:simage_4,
	 	          processData:false,
	 	          contentType:false,
	 	          async:false,
	 	          success:function(data){
	 		        	  if (data.resultCode == 500) {
	 		        		  alert("上传错误");
	 						}
	 		        	console.log(data.data.src);
	 		        	var fileup_d=fileup_c+'['+fileup_g+'].impPath';
	 		        	$("#"+fileup_b).append('<input style="display:none;"th:field="'+fileup_d+'"  name="'+fileup_d+'" value="http://47.97.126.57:8082/file'+data.data.src+'">');
			        	
	 	          }
	 	      });
	 		}
	 		fileup_g++;
		})

	})
	
	$("#pro_edit").click();
}
function downimg(obj){
     var downimg_a=$(obj).attr("value");
     window.open(downimg_a);
}
</script>
	</body>
</html>